#!/usr/bin/env bash


source activate nlpservice

pip install pyhanlp

if [ -f "/home/kduser/anaconda3/lib/python3.7/site-packages/pyhanlp/static/data-for-1.7.4.zip" ];then

echo "data.zip文件存在"
else
mv /var/fugang_le/data-for-1.7.4.zip  /home/kduser/anaconda3/lib/python3.7/site-packages/pyhanlp/static/data-for-1.7.4.zip
echo "复制到hanlp文件夹底下"
fi

python

from pyhanlp import *

# dd